const odooModelName = 'hr.expense.sheet'

const fields_default = {}

const detail_columns = [
  'state__name',
  // 'can_reset',
  // 'payment_mode',
  'accounting_date',
  'employee_id__name',
  'total_amount',
  'name',
  'user_id__name',
  'department_id__name',
  'company_id__name'
]

const formItems = ['accounting_date', 'employee_id', 'name', 'user_id']

const child_configs = {
  expense_line_ids: {
    columns: ['name', 'date', 'product_id__name', 'unit_amount'],
    formItems: ['name', 'date', 'employee_id', 'product_id', 'unit_amount']
  }
}

const Model = {
  name: odooModelName,

  configs: {
    fields_default,
    detail_columns,
    child_configs,
    formItems,
    handle: {
      edit: { hidden: true }
    }
  }
}
export default Model
